package com.home.model.dao;

import javax.ejb.Stateless;

import com.home.model.entity.User;

@Stateless
public class UserDao extends BaseDao<User>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * find user by user name
	 * @param userName
	 * @return User
	 */
	public User findUserByUserName(String userName) {
		User user = find("userName", userName);
		return user;
	}
}
